home *** CD-ROM | disk | FTP | other *** search
- #import <objc/Object.h>
- #import <appkit/graphics.h>
- struct gFlags
- { unsigned isTerminator: 1 ; // MUST be first!
- unsigned isRoot: 1 ;
- unsigned isTarget: 1 ;
- unsigned isFrozen: 1 ;
- unsigned isTray: 1 ;
- unsigned noDraw: 1 ;
- unsigned playing: 1 ;
- unsigned waiting: 1;
- unsigned depth: 6 ;
- unsigned user1: 1 ;
- unsigned user2: 1 ;
- } ;
- @interface Glyph: Object
- { @public
- struct gFlags flags ; // MUST be first!
- NXRect frame ;
- NXPoint hotSpot ;
- NXSize scale ;
- Glyph *is, *then, *ancestor ;
- Glyph *isAux, *thenAux ;
- }
- + draw: (NXSize *) scale ;
- - addClassToListIfAbsent: aList ;
- - ancestor ;
- - ancestor: aGlyph ;
- - auxAncestorOf: aGlyph ;
- - basicFree ;
- - becomeTarget ;
- - calcDepth ;
- - calcAuxDepth ;
- -clone ;
- - cloneAux: aGlyph ;
- -convertFromAncestor: (NXPoint *) aPnt ;
- - convert: (NXPoint *) aPnt fromGlyph: aGlyph ;
- - convert: (NXPoint *) aPnt toGlyph: aGlyph ;
- -convertFromRootGlyph: (NXPoint *) aPnt ;
- -convertToAncestor: (NXPoint *) aPnt ;
- -convertToRootGlyph: (NXPoint *) aPnt ;
- - didResize: sender ;
- - die ;
- - display: (const NXRect *) aRect ;
- - displayRaisedPass1: (id *)image size: (NXSize *) aSize ;
- - displayRaisedPass2: (id *)image ;
- - doesNotRecognize: (SEL) aSelector ;
- - draw: (NXSize *) scale ;
- - drawSelf: (NXRect *) aRect ;
- - enclose ;
- - enlist: (Glyph *) aGlyt ;
- - free ;
- - freeze: (BOOL) state ;
- - getFrame: (NXRect *) aRect ;
- - getHotSpot: (NXPoint *) aPnt ;
- - getScale: (NXSize *) aSize ;
- - hitTest: (NXPoint *) aPnt ;
- - init: (float) width :(float) height ;
- - is ;
- - is: aGlyph ;
- - (BOOL) isLinked ;
- - (BOOL) isTerminator ;
- - mouseDown: (NXEvent *) anEvent ;
- - mouseDragged: (NXEvent *) anEvent ;
- - mouseUp: (NXEvent *) anEvent ;
- - moveTo:(float) x :(float)y ;
- - moveHotSpotTo:(float) x :(float)y ;
- - moveHotSpotTo: (NXPoint *) aPoint ofGlyph: aGlyph ;
- - moveOriginTo: (NXPoint *) aPoint ofGlyph: aGlyph ;
- - plant: (Glyph *) aGlyt ;
- - (BOOL) play ;
- - precursor ;
- - (BOOL) precedes: (Glyph *) aGlyph ;
- - printTTree ;
- - printAuxTTree: (int) depth ;
- - propogate: (char *) aCommand from: (Glyph *) aGlyph ;
- -resignTarget ;
- - resizeBy: (double) w :(double) h pile: (BOOL) pile ;
- - rightMouseDown: (NXEvent *) anEvent ;
- - scan ;
- - sizeTo: (float)width : (float)height ;
- - then ;
- - then: aGlyph ;
- - tick ;
- - unlink ;
- - (BOOL) wait ;
- - wasMoved ;
- - wasPlanted: aGlyph ;
- - wasPlantedAux: aGlyph ;
- - wasReceivedBy: (id) aGlyphView ;
- -read: (NXTypedStream *) stream ;
- -write: (NXTypedStream *) stream ;
- @end
-